home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Plug-In Power Pack for Netscape Communicator
/
Plug-In Power Pack for Netscape Communicator.iso
/
plugins
/
dataviews
/
include
/
dvinteract.h
< prev
next >
Wrap
C/C++ Source or Header
|
1997-05-08
|
8KB
|
201 lines
/*
| dvinteract.h - includes for the event handler and input objects
|===================================================================
| copyright (c) 1987
| V. I. Corporation
|
| Scott Reed January 22, 1987
| Earl Billingsley 12-26-88
| VNtext editing keys
| VOitKeyOrigin definitions
| VOinPutFlag and VOinGetFlag definitions
| Interaction Handler function names for EchoFunction calls
| Flags for VOinGetInternal
|
|===================================================================
*/
#ifndef _DVINTERACT_H_
#define _DVINTERACT_H_
#include "VOstd.h"
/* Typedefs for event handler */
typedef ADDRESS EVENT_REQUEST;
typedef int (*VUERFCNFUNPTR) V_P_((OBJECT client,
EVENT_REQUEST request,
int label,
OBJECT loc,
ADDRESS argblock));
/* Return values for Event Handler service function calls
| These may be ORed together */
#define INPUT_ACCEPT 0x0001
#define INPUT_DONE 0x0002
#define INPUT_CANCEL 0x0004
#define INPUT_USED 0x0008
#define INPUT_UNUSED 0x0010
/* VUerHandler termination flags */
#define ER_STOP_ON_ANY_EDGE 0x001 /* any key press or release */
#define ER_STOP_ON_LEAD_EDGE 0x002 /* any key press */
#define ER_STOP_ON_ANY_USE 0x008 /* result != INPUT_UNUSED */
#define ER_STOP_ON_UNUSED 0x010 /* result == INPUT_UNUSED */
#define ER_STOP_ON_DONE 0x020 /* result == INPUT_DONE */
#define ER_STOP_ON_ACCEPT 0x040 /* result == INPUT_ACCEPT */
#define ER_STOP_ON_CANCEL 0x080 /* result == INPUT_CANCEL */
#define ER_STOP_ON_USED 0x100 /* result == INPUT_USED */
/* VUerPutKeys and VUerGetKeys flags */
#define SELECT_KEYS 0
#define CANCEL_KEYS 1
#define DONE_KEYS 2
#define RESTORE_KEYS 3
#define CLEAR_KEYS 4
#define ACTIVATE_KEYS 5
#define PASSIVATE_KEYS 6
#define TOGGLE_ACTIVATION_KEYS 7
#define TOGGLE_POLLING_KEYS 8
/* VNtext editing keys */
#define ERASE_STRING_KEYS 9
#define ERASE_NEXT_WORD_KEYS 10
#define ERASE_PREVIOUS_WORD_KEYS 11
#define ERASE_PREV_CHAR_KEYS 12
#define ERASE_NEXT_CHAR_KEYS 13
#define BOL_KEYS 14
#define EOL_KEYS 15
#define FORWARD_CHAR_KEYS 16
#define BACK_CHAR_KEYS 17
#define FORWARD_WORD_KEYS 18
#define BACK_WORD_KEYS 19
#define UP_LINE_KEYS 20
#define DOWN_LINE_KEYS 21
#define POSITION_KEYS 22
/* Number of key types in the above list.
| INTERNAL V.I. Corp NOTE
| If this changes, make sure the KeysList array in Uer.c
| has the proper number of initializations. */
#define NUM_KEY_TYPES 23
/*-----------------------------------------
| VOitKeyOrigin flag values
|-----------------------------------------*/
#define LOCAL_KEYS 0
#define GLOBAL_KEYS 1
#define KEY_ORIGIN 6
/* Valid VALUES for this flag are LOCAL_KEYS and GLOBAL_KEYS */
/*-----------------------------------------
| VOinPutFlag and VOinGetFlag definitions
|------------------------------------------*/
/* NAME for flag that tells the interaction handler to
| save the portion of the screen that will be overwritten
| when it first displays the input object. This will cause
| to try save the raster image if it can.
| The default value for this flag is YES */
#define SAVE_RASTER 1 /* VALUES for this flag are YES and NO */
/* NAME for flag that determines how the interaction handler will
| erase the interation area when its done.
| The default value for this flag is RESTORE_RASTER. */
# define ERASE_METHOD 2
/* VALUES for the ERASE_METHOD flag are : */
# define RESTORE_RASTER 0 /* Restore the saved raster, if possible */
# define CALL_REDRAW 1 /* Repair damage by calling VOscRedraw */
# define CALL_VOSCREDRAW CALL_REDRAW
# define ERASE_RECTANGLE 2 /* Erase the viewport to the background */
/* color. */
# define NO_ERASE 3 /* Don't erase, just cleanup the data */
/* structures allocated by the handler. */
# define OBJECT_ERASE 4 /* Use the VOobDraw routines to erase (if possible) */
/* NAME for flag that determines if the interaction handler will
| draw the layout boundary. The default value is YES. */
#define DRAW_LAYOUT_BOUND 3 /* Valid VALUES for this flag are YES and NO */
/* NAME for flag that determines if the interaction handler will
| draw the echo viewport boundary. The default value is YES. */
#define DRAW_ECHO_BOUND 4 /* Valid VALUES for this flag are YES and NO */
/* NAME for flag that determines if the interaction handler will
| actually use the echo area if it exists. If the user has an
| echo function defined and wants to do their own echoing this
| flag allows such control. The default value is YES.
| This flag is NOT currently used. */
#define HANDLER_ECHO 5 /* Valid VALUES for this flag are YES and NO */
/* NAME for flag that tells the interaction handler to
| repair (redraw) screen after update. It will repaint all the objects
| placed on the top of the input and damaged by update.
| The default value for this flag is NO */
#define REDRAW_ON_UPDATE 6 /* VALUES for this flag are YES and NO */
/*-----------------------------------------------------------------
| Name of Routine within Interaction Handler calling EchoFunction
|------------------------------------------------------------------*/
# define INITIAL_DRAW 0
# define TAKE_INPUT 1
# define UPDATE_DRAW 2
# define ERASE 3
# define CONTEXT_REDRAW 4
# define SETUP_FOR_DRAW 5
# define CONTEXT_DRAW 6
# define CLEANUP_DATA 7
# define DATA_RESET 8
/* Input object activation flags. An input object is INACTIVE when all of its
| associated events are deactivated and ACTIVE when the events are activated.
*/
# define ACTIVE 1
# define INACTIVE 2
/*-----------------------------------------------------------------
| Flags for VOinGetInternal
|------------------------------------------------------------------*/
/* Layout to screen transform */
# define TRANSFORM 0
/* Menu item area deque used by the menu and multiplexor */
# define AREA_DEQUE 1
/* Combiner and multiplexor transform used to draw embedded input objects. */
# define OBJECT_TRANS 2
/* Combiner and multiplexor embedded input objects. */
# define INOBJS_DEQUE 3
/* Menu objects used by menu and multiplexor if it is an object menu. */
# define OBJECT_DEQUE 4
/* Menu text objects used by menu and multiplexor if it is a text menu. */
# define ITEM_DEQUE 5
/* Saved version of original value used by
| menu, multiplexor, palette, slider, toggle. */
# define INITIAL_VALUE 6
/* Saved version of original X value used by VNslider2D */
# define INITIAL_XVALUE 7
/* Saved version of original Y value used by VNslider2D */
# define INITIAL_YVALUE 8
/* Main echo area */
# define ECHO_VIEWPORT 9
/* VUer composite event types */
#define VUER_POS_EVENT 0 /* position event */
#define VUER_SE_EVENT 1 /* simple edge event */
#define VUER_BRE_EVENT 2 /* bounding rectangle edge event */
#define VUER_DOE_EVENT 3 /* drawing object edge event */
#define VUER_SRR_EVENT 4 /* service request result event */
#define VUER_OPOS_EVENT 5 /* object position event */
#define VUER_RESIZE_EVENT 6 /* window resize event */
#define VUER_WINQUIT_EVENT 7 /* window quit event */
#define VUER_ICONIFY_EVENT 8 /* window iconify event */
#define VUER_EXPOSE_EVENT 9 /* window expose event */
#define VUER_WIN_ENTER_EVENT 10 /* window enter event */
#define VUER_WIN_LEAVE_EVENT 11 /* window leave event */
/* VUer inside/outside flags */
#define V_OUTSIDE 0
#define V_INSIDE 1
#endif /* _DVINTERACT_H_ */